import {createApp} from 'vue'
import {createPinia} from 'pinia'
import App from './App.vue'
import router from './router'
import VueDOMPurifyHTML from 'vue-dompurify-html'
import 'viewerjs/dist/viewer.css'
import VueViewer from 'v-viewer'
import './quillConfig'
const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(VueDOMPurifyHTML)
app.use(VueViewer, {
    defaultOptions: {
        zIndex: 9999,
        //隐藏不需要的工具栏
        navbar: false,
        movable:false,
        toolbar: false,
        // button: false,
        url(image:HTMLImageElement) {
            //修改图片放大时的图片路径，这里_300是我缩略图和大图的区别
            return image.src.replace('', '');
        },
    }
})

app.mount('#app')

app.config.globalProperties.$SIGN = (window as any).sign

app.config.globalProperties.$DEV = (window as any).sign.DEV


